package models;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.OneToOne;

import play.db.jpa.Model;
/** 
 * 
 * This Model represents the block relation between the User and topic.
 * @author salma
 */

@Entity
public class IdeaDeveloperBlockedFromTopic extends Model {
	@OneToOne
	public User user;
	@OneToOne
	public Topic topic;
	public String reason;
	public Date inDate;
	

	public IdeaDeveloperBlockedFromTopic(User user, Topic topic, String reason,
			Date inDate) {
		this.user = user;
		this.topic = topic;
		this.reason = reason;
		this.inDate = inDate;
	
	}
}